package tests;


import java.util.ArrayList;

import org.junit.Before;
import org.junit.Test;

import pack.model.CONSTANTS.LevelSize;
import pack.model.LevelParser;
import pack.model.Player;
import pack.model.WorldObject;
import android.test.AndroidTestCase;

public class LevelParserTest extends AndroidTestCase{

	LevelParser parser;
	@Before
	public void setUp() throws Exception {
		parser = LevelParser.getInstance();
	}

	@Test
	public final void testLevelParser(){
		ArrayList<WorldObject> map1 = new ArrayList<WorldObject>();
		ArrayList<WorldObject> map2 = new ArrayList<WorldObject>();
		map1 = parser.parseLevel("data/testTestmap.txt", LevelSize.SMALL);
		map2.add(new Player(0,0));
		assertTrue(map1.get(1).getClass().equals(Player.class));
		
	}
}
